<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>	
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/finance/purchasingmanagement/customerCutMaterial_add.js">
</script>
<%-- <script type="text/javascript" src="<%=basePath%>js/jquery-1.7.2.js"></script> --%>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
<link rel="stylesheet" href="<%=basePath%>/js/zyupload/skins/zyupload-1.0.0.min.css " type="text/css">
<script type="text/javascript" src="<%=basePath%>/js/zyupload/zyupload-1.0.0.min.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" enctype="multipart/form-data" name="form" class="form-horizontal" method="post"
		action="${ctx}/quality/slakingcheck_addEntity.shtml">
		<input type="hidden" class="form-control checkacc"
			name="slakingCheckFormMap.id" id="id">
		<input type="hidden" class="form-control checkacc" 
			name="slakingCheckFormMap.state" id="id">
		<section class="panel panel-default">
		<div class="panel-body">
		
		
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						placeholder="产品名称" name="slakingCheckFormMap.productName" id="nc_code_group_no">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品规格</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入规格"  name="slakingCheckFormMap.specification" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">熟化期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入抽检数量" name="slakingCheckFormMap.curingTime" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">重量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入规格" name="slakingCheckFormMap.weight" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">实测</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入规格" name="slakingCheckFormMap.actualMeasurement" id="nc_code_group_desc">
				</div>
			</div>
		
			
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">外观</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入批次" name="slakingCheckFormMap.appearance" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">熟化料外观图</label>
				<div class="col-sm-9">
					<input type="file" class="form-control checkName"
						placeholder="请输入检验要求" name="appearancePic" id="nc_code_group_desc">
						<!-- <div id="zyupload" class="zyupload"></div> -->
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否合格</label>
				<div class="col-sm-9">
					<select class="form-control" name="slakingCheckFormMap.qualified">
						<option value="0">请选择</option>
						<option value="1">合格</option>
						<option value="2">不合格</option>
					</select>
				</div>
			</div>
		
		<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">异常处理</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入检验结果" name="slakingCheckFormMap.exceptionHandling" id="nc_code_group_desc">
				</div>
			</div>
			
			<div class="line line-dashed line-lg pull-in"></div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">确认时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="predictDeliver" 
						name="slakingCheckFormMap.acknowledgingTime"    />
				</div>
			</div>
			
		
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">确认班别</label>
				<div class="col-sm-9">
					<select class="form-control" name="slakingCheckFormMap.confirmationOf">
						<option value="0">请选择</option>
						<option value="1">甲班</option>
						<option value="2">乙班</option>
					</select>
				</div>
			</div>
			
			</div>
			
			
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
		</section>
	</form>
	<script type="text/javascript">
		jeDate({
			dateCell : "#predictDeliver",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	</script>
	
	<%-- <script type="text/javascript">
			$(function(){
				contentPath='<%=basePath%>';
				// 初始化插件
				$("#zyupload").zyUpload({
					width            :   "650px",                 // 宽度
					height           :   "400px",                 // 宽度
					itemWidth        :   "140px",                 // 文件项的宽度
					itemHeight       :   "115px",                 // 文件项的高度
					url              :  contentPath+"/file/batchFileUpload",  // 上传文件的路径
					fileType         :   ["jpg","png","txt","js","exe"],// 上传文件的类型
					fileSize         :   51200000,                // 上传文件的大小
					multiple         :   true,                    // 是否可以多个文件上传
					dragDrop         :   true,                    // 是否可以拖动上传文件
					tailor           :   true,                    // 是否可以裁剪图片
					del              :   true,                    // 是否可以删除文件
					finishDel        :   false,  				  // 是否在上传文件完成后删除预览
					/* 外部获得的回调接口 */
					onSelect: function(selectFiles, allFiles){    // 选择文件的回调方法  selectFile:当前选中的文件  allFiles:还没上传的全部文件
						console.info("当前选择了以下文件：");
						console.info(selectFiles);
					},
					onDelete: function(file, files){              // 删除一个文件的回调方法 file:当前删除的文件  files:删除之后的文件
						console.info("当前删除了此文件：");
						console.info(file.name);
					},
					onSuccess: function(file, response){          // 文件上传成功的回调方法
						console.info("此文件上传成功：");
						console.info(file.name);
						var aa=file.name;
						alert(aa);
						//$("#uploadInf").append(aa);
						console.info("此文件上传到服务器地址：");
						console.info(response);
						
						/* alert($("#uploadInf").html())
						alert($("#upImage").html())
						alert($("#preview").html())
						alert($("#uploadImg").html())*/
						alert($(".uploadImg").html())
						//$("#uploadInf").append($(".uploadImg").html())
					},
					onFailure: function(file, response){          // 文件上传失败的回调方法
						console.info("此文件上传失败：");
						console.info(file.name);
					},
					onComplete: function(response){           	  // 上传完成的回调方法
						console.info("文件上传完成");
						console.info(response);
					}
				});
				
			});
		
		</script>  --%>
	
</body>
</html>